package socket;

import java.io.Serializable;

/**
 * @author MaoLin Wang
 * @description
 * @date 2020/9/30 9:08 上午
 */
public class RpcRequest implements Serializable {

    private static final long serialVersionUID = 3650463806299862071L;
    private String interfaceName;
    private String methodName;
    private int id;

    public void setId(int id) {
        this.id = id;
    }

    public RpcRequest(String interfaceName, String methodName,int id) {
        this.interfaceName = interfaceName;
        this.id=id;
        this.methodName = methodName;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    @Override
    public String toString() {
        return "RpcRequest{" +
                "interfaceName='" + interfaceName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", id=" + id +
                '}';
    }
}
